package com.tianyi.sfzy1.mapper;

import com.tianyi.sfzy1.domain.Memberpoints;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【memberpoints(会员积分表)】的数据库操作Mapper
* @createDate 2025-01-02 11:46:53
* @Entity com.tianyi.sfzy1.domain.Memberpoints
*/
public interface MemberpointsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Memberpoints record);

    int insertSelective(Memberpoints record);

    Memberpoints selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Memberpoints record);

    int updateByPrimaryKey(Memberpoints record);

//   插入积分
    int insertPointsByMemberId(int memberId, int points);

//    根据会员编号修改积分
    int updatePointsByMemberId(int memberId, int points);

//    根据会员编号删除积分
    int deletePointsByMemberId(int memberId);

    //根据会员编号删除积分(批量删除)
    int deletePointsByIds(List<Integer> memberId);
}
